package com.cdp.zwy.zwy_manager_back_v1.common;

/**
 * @author Administrator
 * @version 1.0
 * @description: TODO
 * @date 2025/4/6 20:33
 */
public class ServiceException extends RuntimeException {
    private final ErrorCode errorCode;
    public ServiceException(ErrorCode errorCode) {
        super(errorCode.getMsg());
        this.errorCode = errorCode;
    }
    public ErrorCode getErrorCode() {
        return errorCode;
    }
}
